set(UDP_RELAY_SOURCES
        agent.h
        xm_log.h
        xm_crash.h
        xm_version.h
        xm_app_config.h
        )

add_executable(udp-relay
        ../../src/xm_log.cpp
        ../../src/xm_log.h
        ../../src/xm_crash.cpp
        ../../src/xm_crash.h
        ../../src/xm_version.h
        ../../src/xm_app_config.cpp
        ../../src/xm_app_config.h
        ../../src/xcutil.cpp
        ../../src/xcutil.h
        main_udp_relay.cpp
        )

target_link_libraries(udp-relay
        ${NICE_LDFLAGS}
        ${LOG4CPLUS_LDFLAGS}
        -pthread
        )

if (LIBEXECINFO_STANDALONE)
    target_link_libraries(udp-relay -lexecinfo)
endif(LIBEXECINFO_STANDALONE)

install(TARGETS udp-relay DESTINATION bin)